//
//  NewsdetailViewController.m
//  Movie
//
//  Created by tengyang on 15/7/27.
//  Copyright (c) 2015年 tengyang. All rights reserved.
//

#import "NewsdetailViewController.h"

@interface NewsdetailViewController ()

@end

@implementation NewsdetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   UIWebView *webView=[[UIWebView alloc]initWithFrame:self.view.bounds];
    NSURL *url=[NSURL URLWithString:@"http://news.mtime.com/2013/08/31/1517208.html"];
    NSURLRequest *request=[NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    
    
//    NSString *file=[[NSBundle mainBundle]pathForResource:@"http://news.mtime.com/2013/08/31/1517208.html" ofType:nil];
//    NSString *temp=[NSString stringWithContentsOfFile:file encoding:NSUTF8StringEncoding error:nil];
//    [webView loadHTMLString:temp baseURL:nil];
    
    
    
    [self.view addSubview:webView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
